012 set reset command for latchingunlatching

欢迎来到西门子17:00教程,本课我们将学习技术操作下的设置和复位指令。
Welcome to Siemens 17:00 tutorials and this lesson we're going to learn about set and reset instructions under technology operations.

现在,“设置”和“重置”一词本身意味着它与锁定和解锁有关。
All right now the word set and reset itself means it's related to latching and unlatching.

好的,然后我们将看到一些练习示例。
OK then we'll see some exercise example.

那么让我们继续吧。
So let's proceed with that.

因此,在数据逻辑中更好的逻辑指令中,我们必须对我们的大脑进行设置和重置,您可以从设置和它中进行选择。
So in better logic instruction in data logic we have to our brain set and reset which you can select from the set and it.

这些是其象征。
These are the symbols for that.

好的。
OK.

所以完整的列表是设置指令,即符号。
So the full list is set instruction that is the symbol.

现在这是输出指令。
Now this is the output instruction.

这不是输入。
This is not the input.

如果您看到输出线圈,它与输出线圈非常相似,但中间的 s 而不是现在的 s 意味着它是一组指令。
If you see the output coil it's much similar to the output coil but that the s in between not now the s is means it's a set of instructions.

好的。
OK.

所以我想说的是,当该集被激活时,输出地址处的数据值被设置为1,当该集未激活时,小时不会改变。
So I'd say is where the set is activated and the data value at the out address is set to 1 when the set is not activated the hour does not change.

好的。
OK.

现在这意味着,如果一旦打开,即使后面的信号消失,它也会保持打开状态。
Now this means if once this is on this will remain on even if the signal at the back goes off.

那么这意味着什么。
So what does that mean.

这意味着假设我有信号来到这里。
It mean suppose I have a signal coming here.

所以这件事就这样过去了。
So this goes through.

但如果我的信号消失了,这仍然是事实。
But if my signal goes off this will remain true.

这就是集合的意思。
This is what set means.

好的。
OK.

这是如何可能的以及我们可以用设定的指令做什么。
How it is possible and what we can do with the set instruction.

让我们看一些例子,在我们了解了他所说的最近的指令编号后,叛乱发现他所说的被激活,然后当它未被激活或没有改变时,输出地址处的数据值被设置为零。
Let's see some example after we understand the recent instruction number he said insurgency's found that he said is activated then the data value at the out address is set to zero when it is not activated or does not change.

因此,即使数据从后面消失,我们在设置地址处所说的也是如此。
So the thing which we said here at the set address this is on even if the data is gone from the back.

但如何关闭它。
But how to turn it off.

这是通过复位指令完成的。
This is done by reset instructions.

so said 和 he said 通常一起使用,因为如果不重置,这将在整个逻辑中保持不变。
So said and he said are generally used together because if you do not reset that this will remain on in the whole logic.

好的。
OK.

因此,如果您正在做某事,如果您正在使用 Set 指令设置某些内容,则必须使用 Reset 来重置它。
So if you're doing something if you're doing if you're setting something using Set instruction can you have to use reset to reset it.

这是唯一的办法。
This is the only way.

所以你会看到我们这里有相同的地址以及用于设置和重置的地址。
So you see we have the same address here and an address here for set and reset.

好的。
OK.

所以这是与按钮或后面的瞬时信号一起使用。
So this is the use along with the push button or the momentary signal at the back.

让我们看一个例子,这个例子 SAE 中的一个联系人中的 A 正在执行 x 的集合操作。
So let's see an example this example SAEs you have an A in a contact is doing the set operation of x.

这是输出 0.0,B 处于复位状态。
This is the output 0.0 and B is in the Reset.

所以什么就是什么。
So what is is.

它看到主板输入为零,主板上的输入都是假的。
It sees and the board inputs are zero over the board are false.

它说最后一个日期或最后一个松紧带意味着你知道。
It says the last date or the last elastic means you know.

现在您需要了解一点,我们有一个 out 操作。
Now there is something you need to understand here that we have an out operation.

让我在我们最后的课程中采取另一种颜色。
Let me take another color in the last lessons we have.

了解了这一点就OK了。
Understand this out OK.

如果我使用这个地址,可以说零暗一犹太人没有。
If I use the address let's say Zero Dark One Jews don't one.

我只能在你的PDC的整个程序的整个小逻辑中使用它一次我只能使用它一次。
I can only use it once in the whole little logic in the full on the whole program of your PDC I can only use it once.

我不能使用它两次。
I cannot use it twice.

我再次使用这个线圈两次,并在其他地方使用相同的地址。
Again I use this coil twice with the same address anywhere else.

我只能使用它一次,这就是你可以说的所有Buzzi所有逻辑的所有人的规则。
I can only use it once is this is all you can say that the rule of all people of all the logic of any Buzzi.

好的,但是如果您使用设置操作,则可以多次使用它。
OK but if you're using set operation you can use it multiple times.

你可以在这里使用它,也可以在另一个错误中使用它,你可以在其他分支中使用它,因为它是相同的操作。
You can use it here you can use it in another wrong you can use it in other branches because it's the same operation.

但如果您使用奥迪,则只能使用一次。
But if you're using Audi's you can only use once.

因此,如果您多次使用它,则在 Tello 食品加工过程中,该值可能会变高。
So if you use it multiple times it is possible that in the toldo food process this gets high.

好吧,但如果这个值很低,那就是法律规定的,如果这个值很高,而且我确实写了这个,那么它就会很高,这位地方法官。
OK but if this is low that's what it say's law state if this is high in and I did write this it'd be high and this magistrate.

我的意思是你会看到它已经打开,但由于这个原因它没有打开。
I mean you will see that this is on but this is not on because of this.

这是因为另一个分支。
This is on because of another branch.

这就是法律国家的含义。
So this is this is what it means by law state.

因此,如果两个输入均为 0,则这种情况必须持续下去。
So if both inputs are 0 this would have to last.

它持续可能是一,也可能是零。
It lasted could be one or this could be zero.

好吧,我觉得这是有道理的。
OK I have this makes sense.

所以如果船在你下面,这将意味着最后八场比赛。
So if the boat's it's under you this will mean the last eight.

现在,如果设置了此设置并且重置为真,如果此接触为真,则所有操作很可能都是一次,因为如果这是真的话,它正在执行的操作就是重置。
Now if this is set and reset is true if this contact is true all could well be once because if this is true what it is doing it is doing the reset.

所以这是同一个地址。
So this is the same address.

所以这将是 Foz 但如果设置打开并且旁边为零。
So this will be Foz But if set is on and beside is zero.

因此,如果在这种情况下这个打开并且这个不打开,则所有这些都将打开,因为它将是真的。
So if this is on and this is not on in this case all that will be on because it will be true.

好的。
OK.

现在这是旧的。
Now this is the old one.

现在,如果您再次从该日期转到该日期,如果您再次将其设为零,则这是去年的时间。
Now if you go from this date to this date again if you make it zero again this is when the last year.

现在法律适用什么。
Now what does the law suit.

这将是一个。
It will be one.

这就是法律国家的含义。
This is what it means by law state.

所以它只需要一个平衡来设定。
So it just need a balance to set.

然后,如果你将其设为零,这将变得持久。
Then after that if you make it zero this will get its lastic.

我们将在下一行的示例中看到这一点。
We'll see that in the in the example in the next line.

现在,如果两个输入都为高(如果这是真的),并且您的值为零,因为此重置将具有此值,它将比设置“确定”具有更高的优先级。
Now if both inputs are high if that is true and the is also you out with zero because this reset will have this it'll have higher priority over set OK.

如果是真的,这会将其关闭。
If are it is true this will turn it off.

企业比监督指令具有更高的优先级。
The business has having a higher priority over oversight instructions.

好吧,这件事发生得很晚,不合逻辑。
Okay this has happened in late illogic.

我们在 FBT 中有一些不同的原则。
We have some different principles in FBT.

这就是设置和重置的基本感叹号。
So this was the basic exclamation of set and reset.

现在让我们看一个例子,zambo 说的是放射学到大输出。
Now let's see an example the zambo say is radiologic to large to outputs.

Q 0.0,Gujral 不是一个有眼睛的 0.0。
Q 0.0 and Gujral not one with eyes 0.0.

所以我们有两个输出。
So we have two outputs.

如果你看到这个接线图,我们有 0.0 最后一个,我们有两个指示器。
If you see this this wiring diagram we have 0.0 last one we have two indicators.

好的,这是您必须使用 Isard 或零来锁定的两个输出。
OK these are the two outputs you have to latchet using Isard or zero.

现在,如果我使用“拉兹”这个词,我们必须使用该指令来最大限度地减少我的两者。
Now if I'm using the word Ladds we have to use that instruction to reduce my fullest in both.

很多人都在使用其中任何一种。
And a lot is using either one.

这是我的第二个输入。
This is my second input.

好的。
OK.

所以这是与这里的第二个输入相同的逻辑表。
So this is the same same logic table with second input here.

那么,如果你能想到,用纸和铅笔写下逻辑,然后与答案相匹配,那么逻辑是什么。
So what will be the logic if you can think of it take a paper and pencil and write the logic and you can match with the answer.

所以逻辑是这样的。
So the logic is like this.

你先黑了你2.0的眼睛,你必须输出得不好才能输出和战斗。
You have first gone dark eyes you 2.0 and you have to output in badly OK to output and battle.

那么,如果你在这里有脉搏,会发生什么,这会说这个。
So what'll happen if you have a pulse here this will say this one.

因为这是一点点可签名的,所以转到这里它将设置在这两个螺旋的另一个输出上,现在将使用一点零暗一点来解锁它。
And because this is by little signable go here it will set on another output of these two augered will be on day now to unlatch it using one point zero dark one.

这是我的第二个输入。
So this is my second input.

这是从这里来的。
This comes from here.

当您按下此按钮时,这将是真实的。
When you press this button this will be true.

这将再次传递一个信号,该信号将重置这两个相同的输出,因此您将看到该地址与此地址相同。
This will again pass a signal which will reset these two same output so you will see this address is same as this it is.

这就是数学无止境。
This is the math is endless.

好的。
OK.

那么让我们在 a b 和 c 中尝试这个逻辑并查看结果。
So let's try this logic in a b and c and see the results.

好的。
OK.

所以我们首先以你知道的眼睛来看待。
So we have first in as eyes you know that you know.

一开始我们有一个外侧提示,你知道我将标签重命名为 X..
And that started as a and we have an outboard cues that you know I renamed the tag as X..

现在我需要一个战斗输出,我将点击这个品牌,选择此处打开右侧。
Now I need a battle output I will click on this brand select here open right.

好的。
OK.

如果可以的话,如果你选择这个并选择一个打开的布拉德,它会在这里打开它。
If you can if you select this one and select an open Bradd it will open it here.

我们这里不需要。
We don't need here.

在我们的个性之战中,我们需要单击此处获取一个开放分支并获取输出,这样它就会像这样。
We need at the Battle of our personality click here take an open branch and take an output so it will come like this.

因此,这将是您知道 y 是一个事件的一个标签的提示。
So it will be cues you know that one tag that y is an event.

所以这没关系。
So this is OK.

我这样做是出于理智,但我们需要下定决心。
What I did this was the out of mind but we need to set the mind.

那么,双击该行并选择设置,您要做什么呢?
So what are you going to that even double click this line and select set.

这是我应该折叠的一种方法,除了或者其他方法是你可以在这里选择该组。
This is the one way I should have folded except Or other way is you can select the set here.

好的。
OK.

所以你也可以直接在湖边更改并重置和开始等稍后学习的说明。
So you can also change it directly by the lake side and reset and beginning and other instructions which you learn later.

所以这是一组两个,我们需要重置它。
So this is a set of two of which we need to reset it.

您可以使用其他网络,也可以使用同一网络。
You can either use another network or you can use the same one.

我更喜欢使用同一个。
I prefer to use the same one.

所以我会拿一根破烂的树枝并紧紧地收起来,我你不是一个,这可能是用来重置这两个的。
So I'll take a battered branch and taken in one tight and I you not one and that it might be this is used to reset these two.

所以我会使用重置2.0和无效重置。
So I would use reset 2.0 and invalid reset.

正确的。
Right.

好的。
OK.

所以我的逻辑是完整的。
So my logic is complete.

现在让我们注意,在我的 PC 中没有人来自这里,您可以在 PNC 中看到结果。
Now let's note that in my PC nobody's from here and you can see the results in the PNC.

所以下载需要几秒钟。
So it's downloading a few seconds.

并不是说没有加载。
It's not like it's not loaded.

我会去监控,PNC 就在这儿。
I'll go to monitoring and we have the PNC here.

所以你可以我希望你能看到两个引号和两个。
So you can I hope you can see two in quotes and two.

好的。
OK.

这是我现在可以得到的。
This is the or I can get at this point.

所以我必须通过这两种方式来掌握脉搏。
So I have to give a pulse on a by both means.

我会打开它然后关闭它,但这将保持打开状态。
I would turn it on and then turn it off but this will remain on.

让我们看看第一个输入是否打开。
So let's see that the first input it's on.

所以,如果这是真的,那就这样吧。
So if this is true this goes.

这把东西交给了这两个人。
This gives the thing to these two.

现在我将把它关掉。
Now I will turn it off.

它会让我。
It will let me.

你能看到这个已经设置了吗?
Can you see this is set.

因为那就是正在启动的。
Because that's that's lauching.

好的。
OK.

所以这两个输入都是正确的。
So these two inputs are true.

将其关闭。
To turn it off.

唯一的方法是发出一个信号来重置这两个相同的地址。
The only way is to give a signal to be which will reset these two same addresses.

所以我向 B 发出信号,这将重置我的两个叔叔,你可以看到这一点。
So I give a signal to B and this will reset my two uncles You can see that.

好的。
OK.

现在情况如此。
Now the case.

让我们尝试一些其他被延迟的情况。
Let's try some other cases are retarded on.

好的。
OK.

我会打开它。
And I will turn it on.

在这种情况下,我会尝试按下按钮。
I will try and be as well on total the button in this case.

他会发现,据我所知,这里显示的输出实际上与目前的情况相反。
He will see that the output as far as I see is showing here practically opposite as far as this is going.

真的。
True.

这是因为这里是绿色的,所以有些东西是旧的,但最终是错误的,因为错误的重置具有混合性或已设置。
This is showing because this is green here so something that is going by the old but in the end is false because false reset has hybridity or were set.

好的。
OK.

因此,如果您想通过按下来保持输出,那么这就是您在操作中使用设置和重置的方法,来吧,您可以设置和重置。
So this is how you can use set and reset in your operation if you want to hold the output by a push come on come on you can you set and reset.

当然,会有另一种方法来定义这个逻辑,现在就可以看到。
Of course there will be an alternate way to define this logic which will see that right now.

如果您不想在最近的说明中使用它,您可以使用替代方法。
If you don't want to use that in recent instructions you can use an alternate.

好的。
OK.

替代方案正在使用结果。
The alternate is using an outcome on.

那么让我向您展示一下。
So let me show you that.

所以我们有两个输出。
So we have two outputs.

我们把它拿出来就OK了。
Let's take it out OK.

我只是向您展示我们正在制定此逻辑的想法,因为有多种方法可以制定相同的逻辑。
I'm use I'm just showing you the idea that we are making this logic because there would be multiple ways to make the same logic.

所以我有两个尴尬的命令。
So I have two awkward commands.

我现在将其抽签意味着我将在这里进行联系,这样我将带一个希望听到更多信息的合作伙伴第二次我需要阅读此内容。
I will it now to lotted means I will take a contact here so I will take a partner wish to hear more second I need to read this.

采取联系方式,但该联系方式可能是这一位或这一位。
Take contact not this contact could be this one or this one.

好的,所以我会提出挖掘上面的一个。
OK so I'd present to dig the upper one.

所以这是X,在这里我将在战斗中将其连接起来。
So this is X and here I will connect that in battle.

现在,如果你运行这个,如果你让它成真,会发生什么。
Now what will happen if you run this if you make it true.

这是真的。
This would be true.

因为这个地址与这个地址相似,所以这也是正确的。
And because this address this address is similar to this address this would be true as well.

因此,这将锁存输出 OK 以解锁它。
So this will latch the output OK to unlatch it.

我不必使用复位解锁输出,我必须使用 NC 命令。
I don't have to use a reset unlatched the output I have to use an NC command.

好的。
OK.

所以我可以使用它。
So I can use it.

我可以在这里使用它,也可以在这里使用我更喜欢先在这里实习的东西,这是我可以在这里编辑的,意味着我认为这应该是你。
I can either use it here or here what I prefer to take an intern here first and this is the one I can edit here and means thinking this should be you.

是的。
Yep.

现在会发生什么。
Now what will happen.

让我下载并向您展示结果。
Let me just download and show you the results.

基本上我认为我犯了一个错误,今年 9 月份我们会听到很好的消息。
Basically I think I made a mistake this 9 we're going to hear good.

这是制作文字项目的方法之一,您可以用不同的方式设计自己的逻辑。
This is one of the way to make a project of words you can design your own logic with a different way.

但按照这个逻辑发生了什么。
But what happened in this logic.

现在获取下载的项目。
Now get the project this downloaded.

现在让我带您看看我们这里有什么。
Now let me show you to see what we have here.

默认情况下,两个输入处于打开状态。
Two inputs are on by default.

当您正在监视时,请再次将其关闭。
When you are monitoring you turn it off again.

所以你可以注意到这一点。
So you can notice that.

让我先重置这个逻辑,我将得到一些输出和所有输入。
Let me just reset this logic first I'll get some outputs and all of my input on off.

所以发生了什么事。
So what happened.

最初我会打开A。
Initially I would turn on the A.

因此,如果这是所有默认 B 的情况,则所有错误都不在此处。
So if it is on this is all the defaults B's all the fault is not on here.

所以这是关闭的,因为这是 Anssi 返回,所以它将通过信号将打开 X,并将在 y 上完成。
So this is closed because this is Anssi going back so it will pass the signal will turn on X and it will done on y.

好的。
OK.

让我来做这个。
Let me do this.

它开着。
It is on.

现在,如果它打开了,那么它就打开了,因为这已经很接近了。
Now if it is on this is on because this is close.

所以这就是这就是这。
So this is on this is on.

并且因为此 X 与此联系人具有相同的地址,所以这也是打开的。
And because this X has same address as this contact This is also on.

现在会发生什么。
Now what will happen.

我会把这个A关掉。
I will turn off this A.

我会将其从滥用者处关闭。
I will turn it off from abusee.

你看到我的输入从这里关闭,但输出仍然在这条腿上,因为它在辅助触点上,所以它打开了,它正在将信号传递到这个X,并将信号传递到yx和y。
You see my input is off from here but the output remains on this leg the side come on because it's on auxiliary contact here makes it on OK it's passing the signal to this X and it's passing into the y x and y.

所以这是关闭它的唯一方法是当你打开时就可以了,因为如果我打开 B,这是我的第二个输入,这将打开,这将打开,这将关闭将要飞的鸡蛋。
So this is on the only way to turn it off is when you turn on be OK because if I turn on the B which is my second input this will be open and this will be open which will turn off eggs which are going to fly.

因为 X 关闭,所以它自己的触点 X 在暂时完成此操作后关闭。
And because X goes off it's own contact X goes off to after momentarily done this be on.

所以我能做的是我可以打开它,你可以看到 B 在 PC 上,我将其关闭。
So I can do is I can turn it on you can see that B is on the PC and I will turn it off.

这与我们在设置和重置中所做的类似。
This is similar to what we have done in set and reset.

这是同样的逻辑。
It's the same logic.

如果我已经完成了这两项操作并处于设置重置示例中,那么其他两个都关闭了,因为重置具有更高的优先级。
And what if I had done both and be on the set reset example both the others were off because reset has more priority.

如果我将 Melwood 上的两个输入都关闭,那么为什么它会关闭,因为这是在这里传递东西,但因为 B 在 Peasey 中为 true,所以这是打开的,这是向上的,或者是关闭的。
If I turn both inputs on Melwood is off ok why it's off because this is passing the thing here but because B is true in the Peasey this is open and this is up or it is off.

这就是它的意思。
This is what it means.

因此,这是使用空触点进行置位和复位逻辑的另一种方法。
So this is the alternate way to make a set and reset logic using an empty contact.

所以你可以使用任何你想要的东西。
So you can use whatever you want.

这个选项取决于您认识的程序员他想要哪种编程方式。
This is an option that depends on the you know the programmer which way he wants to program.

这是关于 Lady 逻辑中的设置和重置。
So this is about set and reset in Lady logic.

好的。
OK.

所以我们有一个类似的,我们在FPD设置和重置Fuerth Elliman中有一个类似的操作看起来不同,但它的操作是相似的,在这种情况下,你有一个像这样的块,并且重置像这样被阻止,所以你有离开这里和这里。
So we have a similar we have a similar operation in FPD set and reset Fuerth the Elliman looks different but it's the operation is similar in this case you have a block like this and reset is blocked like this so you have out of here and as here.

所以输入会转到左手。
So the input goes to the left hand.

这就是输出。
And this is the output.

因此,如果您看到一个示例,这就是一个示例并重置。
So if you see an example this is an example of that and reset.

好的。
OK.

所以你在这里得到了输出。
So you have the output right here.

好的。
OK.

所以,如果你有一个脉搏,我不认为这会是真的,如果设置在阿布鲁齐上的话。
So if you have a pulse at one I don't argue this of it would be true like this one if set is on Abruzzi on.

如果有信号的话我会比它低0.1分贝。
If you have signal I'd be 0.1 decibel before it.

这是同一个地址。
This is the same address.

所以他说我们在这里为零。
So he said we'll be zero here zero.

但如果两个输入都为零,则输出将为零。
But if both inputs that on output will be zero.

好的。
OK.

与我们在上一个练习中看到的类似。
Is similar to what we saw in our last exercise.

这与使用 FPD 进行相同的操作相同的练习。
And this is the same operation same exercise using FPD.

所以你有八个输入。
So you have eight input.

这是我们联系人中的输入,它正在执行将零归零和从零归一的操作。
This is the this is the input in our contact and it is doing said operation to zero zero and zero to 1.

这是参与大脑思考太可爱的大脑做同样的输出。
This is to be involved in the cerebration too cute cerebration do same outputs.

所以这与我们在放射学中所做的有点相似,表示不同,但操作相似。
So it's somewhat similar to what we did in radiologic what the representation is different but the operation is similar.

如果您有软件,您可以在 TIAA 中进行练习。
You can practice that in TIAA if you have the software.

好的。
OK.

所以这是关于设置和重置接下来我们要做的是设置和重置字段Kafeel有不同的含义。
So this is about set and resetting the next we do is set and reset field Kafeel has a different meaning.

我们最近学到的东西被设置和重置。
What we recently learned was set and reset.

这里的“一”就意味着这是一场诱饵行动。
One the one here means it's a bait operation.

好的。
OK.

这是一个大手术。
It's a big operation.

接下来我们将看到set和reset中的字段操作。
The next we'll see the field operation in set and reset.

那么那是什么。
So what is that.

我们将在下一个视频中看到这一点。
We'll see that in the next video.

感谢您的观看。
Thank you for watching.